#ifndef _QUEUE0_H
#define _QUEUE0_H

#include "common.h"

// define by user
#define MAX_QSIZE 8
typedef char Item;

//
typedef struct {
	Item data[MAX_QSIZE];
	int front;
	int rear;
	int len;
}Queue;

void createQueue(Queue *pq);
BOOL qIsFull(Queue *pq);
BOOL qIsEmpty(Queue *pq);
int queue_length(Queue *pq);
BOOL enItem(Queue *pq,const Item item);
BOOL deItem(Queue *pq,Item *pitem);

#endif // #ifndef _QUEUE0_H

